import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import axios from 'axios'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import Routes from './routes'
// TODO // [vuex] must call Vue.use(Vuex) before creating a store instance.
import store from './store'

Vue.config.productionTip = false

Vue.use(Vuetify)
Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',
  routes: Routes,
  base: '/'
})

axios.defaults.baseURL = '/';
Vue.prototype.$axios = axios;

new Vue({
  render: h => h(App),
  store,
  router
}).$mount('#app')
